﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Jenvin.Library.DBUtility;
using System.Data;

namespace DBTest
{
    class Program
    {
        internal sealed class Node
        {
            public int Item;

            public Node Left;

            public Node Right;
            /// <summary>
            /// 平衡因子 
            /// </summary>
            public int BF;

        } 
        static void Main(string[] args)
        {

            Node p = new Node();
            Node q = p;
            q.Item = 1;

           // DbUtility db =
            SqlDbUtility db = new SqlDbUtility("Data Source=.;Initial Catalog=ESunnyChinese;Integrated Security=True");
            //db.ParserOptions.
            //db.AlwaysCreateConnection = false;
            //sqlDb.CreateStoredProcedure("",null).
           // DataRow dr = db.ExecuteSingleRow("select  * from CompanyInfo where CompanyID={0}", 1);
           // DataRow dr2 = db.ExecuteSingleRow("select  * from CompanyInfo where CompanyID={0}", 2);
            db.ExecuteNonQuery("insert into BankInfo values({0},{1},...)", 100, "中国招商银行", "http://cn.esunny.com"
                , "13421392641", DateTime.Now, 1, DateTime.Now, 1, DateTime.Now, "123", "123");

        }
    }
}
